# This Makefile has been simplified as much as possible, by putting all
# generic material, independent of this specific directory, into
# ../Rules.make. Read that file for details
CROSS_COMPILE=arm-linux-
INCLUDEDIR=/home/fyb/2410/2.4.18-rmk7/include
#CROSS_COMPILE=
#INCLUDEDIR=/usr/src/linux/include

# This is useful if cross-compiling. Taken from kernel Makefile (CC changed)
AS      =$(CROSS_COMPILE)as
LD      =$(CROSS_COMPILE)ld
CC      =$(CROSS_COMPILE)gcc
CPP     =$(CC) -E
AR      =$(CROSS_COMPILE)ar
NM      =$(CROSS_COMPILE)nm
STRIP   =$(CROSS_COMPILE)strip
OBJCOPY =$(CROSS_COMPILE)objcopy
OBJDUMP =$(CROSS_COMPILE)objdump


#CFLAGS +=  -Wall -D__KERNEL__ -DMODULE -I$(INCLUDEDIR)
CFLAGS +=  -Wall -I$(INCLUDEDIR) -DHAVE_AV_CONFIG_H

CFLAGS += -O -I..

DEBUG = y

ifeq ($(DEBUG),y) 
	DEBFLAGS = -D_DEBUG 
else 
	DEBFLAGS =  
endif
CFLAGS += $(DEBFLAGS)

all:sound

sound:sound.o adpcm.o utils.o
clean:
	rm -f *.o *~ core

